updating oE intdiv

intdiv

include math.e 
namespace math 
public function intdiv(object a, object b) 

returns an integral division of two objects.

Parameters:
  1. divided : any Euphoria object.
  2. divisor : any Euphoria object.
Returns:

An object, which will be a sequence if either dividend or divisor is a sequence.

Comments:
  • This calculates how many non-empty sets when dividend is divided by divisor.
  • The result's sign is the same as the dividend's sign.
Example 1:
object Tokens = 101 
object MaxPerEnvelope = 5 
integer Envelopes = intdiv( Tokens, MaxPerEnvelope) --> 21 
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu